package com.springcloud.tread.controller;

import com.springcloud.tread.pojo.Index;
import com.springcloud.tread.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class IndexController {

    @Autowired
    IndexService indexService;

    @GetMapping("/provider/get")
    public List<Index> get() {
        return indexService.get();
    }
}
